package org.dragonnova.lamp;

/**
 * Created by hucn on 2016/10/26.
 * Description: 一个传递错误信息的类
 */
public class ErrorCode {

    public static final int ERROR_WIFI = 1;
    public static final int ERROR_SOCKET = 2;
    public static final int ERROR_DATA = 3;

    private int error;
    private String description;

    public ErrorCode(int error, String description) {
        this.error = error;
        this.description = description;
    }

    public int getError() {
        return error;
    }

    public void setError(int error) {
        this.error = error;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
